package com.faxsun.pojos.view;

import java.io.Serializable;
import java.util.Date;

import com.faxsun.core.persist.entity.LivePO;

public class Live implements Serializable {
	private static final long serialVersionUID = -247762721687014702L;
	private long id;

	private String topic;

	private Date startTime;

	private Date endTime;

	private String coverImage;

	private String description = "Hi，世界那么大，不想去看看吗？范客生活带给您完美的直播和互动体验，记录生活和工作中每一个值得回忆的时刻。Enjoy:)";

	private long nop;

	public static Live bulid(LivePO live) {
		return new Live(live.getId(), live.getTopic(), live.getStartTime(),
				live.getEndTime(), live.getCoverImage(), live.getDescription());
	}

	protected Live(long id, String topic, Date startTime, Date endTime,
			String coverImage, String description) {
		super();
		this.id = id;
		this.topic = topic;
		this.startTime = startTime;
		this.endTime = endTime;
		this.coverImage = coverImage;
		this.description = description;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getCoverImage() {
		return coverImage;
	}

	public void setCoverImage(String coverImage) {
		this.coverImage = coverImage;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public long getNop() {
		return nop;
	}

	public void setNop(long nop) {
		this.nop = nop;
	}

}
